//定义全部接口返回数据都拥有ts类型
export interface ResponseData {
  code: number
  msg: string
}
export interface ResponseBaseData {
  code: number
  msg: string
  data: string
}
export interface LoginFormData {
  username: string
  password: string
}
export interface LoginResponseData extends ResponseData {
  data: {
    accessToken: string
    tokenType: string
    refreshToken: string
    expires: string
  }
}
export interface ChangePasswordData {
  username: string
  newPassword: string
  captcha: string
}
export interface RegisterFormData {
  username: string
  nickname: string
  password: string
  mobile: string
  gender: string
  avatar: string
  email: string
  deptId: string
}

export interface EmailCaptchaData {
  email: string
  captcha: string
}
